let testModule = "itmggcloud";

const pages = {
  index: {
    entry: 'src/main.js',
    template: 'public/index.html'
  }
}

module.exports = {
  outputDir: testModule,

  lintOnSave: true,

  pages,

  devServer: {
    open: true,
    host: "localhost",
    https: false,
    hotOnly: false,
    proxy: {
      '/workflow': {    //将www.exaple.com印射为/apis
        target: 'http://localhost:8080',  // 接口域名
        secure: false,  // 如果是https接口，需要配置这个参数
        ws: true,
        changeOrigin: true,  //是否跨域
        pathRewrite: {
            '^/workflow': ''   //需要rewrite的,
        }              
      }
    }
  },

  filenameHashing: true,

  pluginOptions: {

  }
}